Conversation
Contributor
|
/gemini review |
There was a problem hiding this comment.
Code Review
이번 PR은 Flyway를 도입하여 데이터베이스 스키마 버전 관리를 시작하는 중요한 변경을 담고 있습니다. 전반적으로 Flyway 설정과 초기 스키마 파일이 잘 추가되었습니다. 리뷰에서는 몇 가지 중요한 점들을 지적했습니다. 첫째, V1__init.sql 파일에 포함된 DROP TABLE 구문은 데이터 유실의 위험이 있어 제거가 필요합니다. 둘째, User와 Profile 간의 일대일 관계 설계가 표준적이지 않아 리팩토링이 필요해 보입니다. 셋째, build.gradle의 의존성 설정, 엔티티와 스키마 간의 불일치, 그리고 테스트 스키마와 마이그레이션 스키마 간의 차이점 등 유지보수성과 안정성을 높이기 위한 몇 가지 제안을 드렸습니다. 추가적으로, application-local.yaml 파일에서 spring.jpa.hibernate.ddl-auto 속성이 update로 되어 있는데, Flyway와 충돌을 피하기 위해 none으로 변경하는 것을 강력히 권장합니다. 이 부분은 변경사항에 포함되지 않아 코멘트를 남기지 못했지만 매우 중요한 사항입니다.
Comment on lines
2
to
8
| DROP TABLE IF EXISTS private_messages; | ||
| DROP TABLE IF EXISTS feed_comments; | ||
| DROP TABLE IF EXISTS feeds; | ||
| DROP TABLE IF EXISTS users; | ||
| DROP TABLE IF EXISTS profiles; | ||
| DROP TABLE IF EXISTS communities; | ||
| DROP TABLE IF EXISTS companies; |
There was a problem hiding this comment.
# Conflicts: # src/main/java/com/example/bak/user/domain/Profile.java # src/main/java/com/example/bak/user/domain/User.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
이슈와 프로젝트(Project) 연결 시 반드시 주의하세요.
이는 업무 효율도를 위해서 사용하는 것이지 때문에 협조 부탁드립니다. 추가로, 완료 된 PR 이라면 리뷰어를 직접적으로 연결해주세요 :)
📌 연결된 이슈
📖 주요 변경 사항
🔖 작업 내용 요약
😎 질문